package cn.mingfancloud.bilibili_java.javabase.interfaceTest;

public class Test {
    public static void main(String[] args) {
        Frog f = new Frog("xiaoqin",1);
        System.out.println(f.getName()+","+f.getAge());

        f.eat();
        f.Swim();

        Rebbit r = new Rebbit("xiaobai",2);
        System.out.println(r.getName()+","+r.getAge());
        r.eat();

    }
}
